<?php

class levelView extends View {

	function __construct(){
		parent::__construct();
	}

	public function showAddLevel() {
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('level/status_json.tpl');
		}
		else {
			$this->setTemplate('level/status.tpl');
		}

		$this->show();
	}

	public function showUpdateLevel() {
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('level/status_json.tpl');
		}
		else {
			$this->setTemplate('level/status.tpl');
		}
		$this->show();
	}

	public function showDeleteLevel() {
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('level/status_json.tpl');
		}
		else {
			$this->setTemplate('level/status.tpl');
		}
		$this->show();
	}

	public function showGetLevel() {
		if($USE_JSON) {
			$this->setRenderType(VS_PLUGIN);
			$this->setTemplate('level/get_json.tpl');
		}
		else {
			$this->setTemplate('level/get.tpl');
		}

		$this->show();
	}

}
?>